<template>
	<view>
		<u-swiper v-if="list1.length>0" @click="click" :list="list1" height="220" radius="0" :indicator="true" indicatorMode="dot"></u-swiper>
		<view class="boxes">
			<view>{{msg.content}}</view>
			
			<view>反馈类型：{{msg.typestr}}</view>
			<view>{{msg.create_time}}</view>
		</view>
		
		<view class="title">操作反馈</view>
		<view class="boxes" v-if="msg.status!=0">
			<view v-if="msg.remark">{{msg.remark}}</view>
			<view v-else>无</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list1: [
					// 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
					// 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					// 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
				],
				msg:{}
			}
		},
		onLoad(options) {
			let items = JSON.parse(options.items);
			// console.log(JSON.parse(options.items));
			this.msg = items;
			if(items.images.length>0){
				this.list1 = items.images;
			}
		},
		methods: {
			click(index){
				uni.previewImage({
					current: index, //预览图片的下标
					urls: this.list1 //预览图片的地址，必须要数组形式，如果不是数组形式就转换成数组形式就可以
				});
			}
		}
	}
</script>

<style scoped lang="scss">
	.boxes{
		margin: 20rpx 15rpx;
		padding: 30rpx;
		border-radius: 20rpx;
		background: #fff;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #000000;
		
		view:nth-child(2) {
			margin: 30rpx 0 20rpx 0;
		}
		view:nth-child(3) {
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #878787;
			line-height: 36rpx;
		}
	}
	.title{
		margin: 40rpx 0 0 50rpx;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #000000;
	}
</style>
